"use strict";

Object.defineProperty(exports, "__esModule", {
    value: true
});
exports.default = getWindowHeight;
/**
 * 兼容性封装
 * 浏览器视口的高度
 * @returns {number}
 */
function getWindowHeight() {
    var windowHeight = 0;
    if (document.compatMode == "CSS1Compat") {
        windowHeight = document.documentElement.clientHeight;
    } else {
        windowHeight = document.body.clientHeight;
    }
    return windowHeight;
}